package com.wzh.design.strategy.demo3;

/**
 * @description:
 * @author: WZH
 * @time: 2021/5/26 9:41
 */
public class Athlete implements SpecificSkill {
    @Override
    public void mySkill() {
        System.out.println("长跑+铁人三项");
    }

    public static void main(String[] args) {

    }

}

class A{
    public static void main(String[] args) {




    }
}


interface B{

    void mofa();

}

interface C{
    void wuli();
}

abstract class GJS{
    B b;
    C c;

    public void shuChu(){
        b.mofa();
        c.wuli();
    }

    public void setB(B b) {
        this.b = b;
    }

    public void setC(C c) {
        this.c = c;
    }
}

class D implements B{

    @Override
    public void mofa() {
        System.out.println("终极圣光");
    }
}

class E implements C{

    @Override
    public void wuli() {
        System.out.println("狂风绝息斩");
    }
}